package com.yjt.zdjf.standard.common.init;

import javax.servlet.ServletContext;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.context.support.WebApplicationContextUtils;
import org.springframework.web.context.support.XmlWebApplicationContext;


public class ApplicationContextStartupInit implements Init {
	private static Logger logger = LoggerFactory.getLogger(ApplicationContextStartupInit.class);

	public void init(ServletContext context) {
		XmlWebApplicationContext xwaContext = (XmlWebApplicationContext)WebApplicationContextUtils.getWebApplicationContext(context);
		xwaContext.start();
		logger.info("=================WebApplicationContext started!=================");
	}

}
